﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EB1 RID: 3761
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonMoney : IMessage<RogueCommonMoney>, IMessage, IEquatable<RogueCommonMoney>, IDeepCloneable<RogueCommonMoney>, IBufferMessage
	{
		// Token: 0x17002FB2 RID: 12210
		// (get) Token: 0x0600A883 RID: 43139 RVA: 0x001C7138 File Offset: 0x001C5338
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonMoney> Parser
		{
			get
			{
				return RogueCommonMoney._parser;
			}
		}

		// Token: 0x17002FB3 RID: 12211
		// (get) Token: 0x0600A884 RID: 43140 RVA: 0x001C713F File Offset: 0x001C533F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonMoneyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002FB4 RID: 12212
		// (get) Token: 0x0600A885 RID: 43141 RVA: 0x001C7151 File Offset: 0x001C5351
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonMoney.Descriptor;
			}
		}

		// Token: 0x0600A886 RID: 43142 RVA: 0x001C7158 File Offset: 0x001C5358
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonMoney()
		{
		}

		// Token: 0x0600A887 RID: 43143 RVA: 0x001C7160 File Offset: 0x001C5360
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonMoney(RogueCommonMoney other) : this()
		{
			this.num_ = other.num_;
			this.displayType_ = other.displayType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A888 RID: 43144 RVA: 0x001C7191 File Offset: 0x001C5391
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonMoney Clone()
		{
			return new RogueCommonMoney(this);
		}

		// Token: 0x17002FB5 RID: 12213
		// (get) Token: 0x0600A889 RID: 43145 RVA: 0x001C7199 File Offset: 0x001C5399
		// (set) Token: 0x0600A88A RID: 43146 RVA: 0x001C71A1 File Offset: 0x001C53A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Num
		{
			get
			{
				return this.num_;
			}
			set
			{
				this.num_ = value;
			}
		}

		// Token: 0x17002FB6 RID: 12214
		// (get) Token: 0x0600A88B RID: 43147 RVA: 0x001C71AA File Offset: 0x001C53AA
		// (set) Token: 0x0600A88C RID: 43148 RVA: 0x001C71B2 File Offset: 0x001C53B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DisplayType
		{
			get
			{
				return this.displayType_;
			}
			set
			{
				this.displayType_ = value;
			}
		}

		// Token: 0x0600A88D RID: 43149 RVA: 0x001C71BB File Offset: 0x001C53BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonMoney);
		}

		// Token: 0x0600A88E RID: 43150 RVA: 0x001C71C9 File Offset: 0x001C53C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonMoney other)
		{
			return other != null && (other == this || (this.Num == other.Num && this.DisplayType == other.DisplayType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A88F RID: 43151 RVA: 0x001C7208 File Offset: 0x001C5408
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Num != 0U)
			{
				num ^= this.Num.GetHashCode();
			}
			if (this.DisplayType != 0U)
			{
				num ^= this.DisplayType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A890 RID: 43152 RVA: 0x001C7260 File Offset: 0x001C5460
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A891 RID: 43153 RVA: 0x001C7268 File Offset: 0x001C5468
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A892 RID: 43154 RVA: 0x001C7274 File Offset: 0x001C5474
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.DisplayType != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.DisplayType);
			}
			if (this.Num != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Num);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A893 RID: 43155 RVA: 0x001C72D0 File Offset: 0x001C54D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Num != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Num);
			}
			if (this.DisplayType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DisplayType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A894 RID: 43156 RVA: 0x001C7328 File Offset: 0x001C5528
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonMoney other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Num != 0U)
			{
				this.Num = other.Num;
			}
			if (other.DisplayType != 0U)
			{
				this.DisplayType = other.DisplayType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A895 RID: 43157 RVA: 0x001C7378 File Offset: 0x001C5578
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A896 RID: 43158 RVA: 0x001C7384 File Offset: 0x001C5584
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Num = input.ReadUInt32();
					}
				}
				else
				{
					this.DisplayType = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400446F RID: 17519
		private static readonly MessageParser<RogueCommonMoney> _parser = new MessageParser<RogueCommonMoney>(() => new RogueCommonMoney());

		// Token: 0x04004470 RID: 17520
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004471 RID: 17521
		public const int NumFieldNumber = 13;

		// Token: 0x04004472 RID: 17522
		private uint num_;

		// Token: 0x04004473 RID: 17523
		public const int DisplayTypeFieldNumber = 5;

		// Token: 0x04004474 RID: 17524
		private uint displayType_;
	}
}
